# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=archivemount
pkgver=0.9.1
pkgrel=3
pkgdesc="FUSE based filesystem for mounting compressed archives"
options="!check" # No testsuite
url="https://github.com/bramp/archivemount"
arch="all"
license="LGPL-2.0-or-later"
makedepends="fuse3-dev libarchive-dev autoconf automake libtool"
subpackages="$pkgname-doc"
source="http://www.cybernoia.de/software/archivemount/archivemount-$pkgver.tar.gz
	fuse3.patch"

build() {
	autoreconf -vif
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ecfa8abc1dcae34c855f9a2943113ddd3eb1b81011f23ef6a8dddd344c1db44b132683a1181f17b5691a783df764523ee0d2b802202d93890dcbdb78bee53522  archivemount-0.9.1.tar.gz
92ecd06b60ef0800ba028cc707f020a41bda89d0b219b3fac47727c9549e7842ee60a5d4baa017fffc6b32921db289e33682c4e33a39ecce573d8fc62e27f6d9  fuse3.patch
"
